package zadanie5Done;

import java.util.ArrayList;

class Zadanie5 
{
	public static void main(String[] args) throws Exception
	{
		Resource c = new Resource();
		
		ArrayList<Thread> arrayList = new ArrayList<Thread>();
		for(int i = 0 ; i < 10 ; i ++){
			arrayList.add(new Client(c, i, 50));
		}
		for(int i = 10 ; i < 20 ; i ++){
			arrayList.add(new Server(c, i, 5));
		}
		for(Thread thread : arrayList)
			thread.start();
	}
}